|
|
Check out the image I just posted here:
http://www.tron-sector.com/forums/default.aspx?do=top&id=274417
to see the direction this is going.
I've got this coded so I can animate the trail and I need to add the fixed
lines of white that will be added as the bike moves along its path at
regular intervals. I thought something like this would work and cause
where ever the trail passed through one of the fixes cylinders to be
assigned the texture "bright_white" and use the complicated moving
spherical texture map to be used outside the cylinders. The example I
was copying was a pigment object pattern. Can the same effect be used
on textures? If so do I just have a syntax problem below. The variable
clock1 below will be replaced with clock in the final animation. I've just
renamed it so I could manually assign it for making quick test renders.
Can anyone help?
Carl
object {path1_light_trail
texture {
object {
union {
cylinder {path1_spline(0.15), path1_spline(0.15)+231*y, 20}
cylinder {path1_spline(0.35), path1_spline(0.35)+231*y, 20}
cylinder {path1_spline(0.55), path1_spline(0.55)+231*y, 20}
cylinder {path1_spline(0.75), path1_spline(0.75)+231*y, 20}
cylinder {path1_spline(0.95), path1_spline(0.95)+231*y, 20}
}
texture {bright_white}
}
spherical
texture_map {
[0 pigment{Red}]
[0.05 pigment{Red}]
[0.05 bright_white11]
[0.10 pigment{Red}]
[0.10 bright_white10]
[0.15 bright_white11]
[0.15 bright_white9]
[0.20 bright_white10]
[0.20 bright_white8]
[0.25 bright_white9]
[0.25 bright_white7]
[0.30 bright_white8]
[0.30 bright_white6]
[0.35 bright_white7]
[0.35 bright_white5]
[0.40 bright_white6]
[0.40 bright_white4]
[0.45 bright_white5]
[0.45 bright_white3]
[0.50 bright_white4]
[0.50 bright_white2]
[0.55 bright_white3]
[0.55 bright_white1]
[0.60 bright_white2]
[0.60 bright_white]
[0.65 bright_white1]
[0.65 bright_white]
[1 bright_white0]
scale 600 translate path1_spline(clock1+path1_offset)+85*y
}
}
}
Post a reply to this message
|
|